{
  "context": {},
  "data": {
    "host": {
      "hostname": "pc",
      "canary": null
    },
    "active-record": {
      "duration": "6ms",
      "calls": "7 (0 cached)",
      "details": [
        {
          "duration": 1.096,
          "sql": "SELECT COUNT(*) FROM ((SELECT \"badges\".* FROM \"badges\" WHERE \"badges\".\"type\" = 'ProjectBadge' AND \"badges\".\"project_id\" = 8)\nUNION\n(SELECT \"badges\".* FROM \"badges\" WHERE \"badges\".\"type\" = 'GroupBadge' AND \"badges\".\"group_id\" IN (SELECT \"namespaces\".\"id\" FROM \"namespaces\" WHERE \"namespaces\".\"type\" = 'Group' AND \"namespaces\".\"id\" = 28))) badges",
          "backtrace": [
            "ee/lib/ee/peek/views/active_record.rb:11:in `generate_detail'",
            "lib/peek/views/active_record.rb:42:in `block in setup_subscribers'",
            "lib/gitlab/pagination/offset_pagination.rb:53:in `add_pagination_headers'",
            "lib/gitlab/pagination/offset_pagination.rb:15:in `block in paginate'",
            "lib/gitlab/pagination/offset_pagination.rb:14:in `tap'",
            "lib/gitlab/pagination/offset_pagination.rb:14:in `paginate'",
            "lib/api/helpers/pagination.rb:7:in `paginate'",
            "lib/api/badges.rb:42:in `block (3 levels) in <class:Badges>'",
            "ee/lib/gitlab/ip_address_state.rb:10:in `with'",
            "lib/api/api_guard.rb:208:in `call'",
            "lib/gitlab/jira/middleware.rb:19:in `call'"
          ],
          "cached": "",
          "warnings": []
        },
        {
          "duration": 0.817,
          "sql": "SELECT \"projects\".* FROM \"projects\" WHERE \"projects\".\"pending_delete\" = $1 AND \"projects\".\"id\" = $2 LIMIT $3",
          "backtrace": [
            "lib/api/helpers.rb:112:in `find_project'",
            "ee/lib/ee/api/helpers.rb:88:in `find_project!'",
            "lib/api/helpers/members_helpers.rb:14:in `public_send'",
            "lib/api/helpers/members_helpers.rb:14:in `find_source'",
            "lib/api/badges.rb:36:in `block (3 levels) in <class:Badges>'",
            "ee/lib/gitlab/ip_address_state.rb:10:in `with'",
            "lib/api/api_guard.rb:208:in `call'",
            "lib/gitlab/jira/middleware.rb:19:in `call'"
          ],
          "cached": "",
          "warnings": []
        },
        {
          "duration": 0.817,
          "sql": "SELECT \"projects\".* FROM \"projects\" WHERE \"projects\".\"pending_delete\" = $1 AND \"projects\".\"id\" = $2 LIMIT $3",
          "backtrace": [
            "lib/api/helpers.rb:112:in `find_project'",
            "ee/lib/ee/api/helpers.rb:88:in `find_project!'",
            "lib/api/helpers/members_helpers.rb:14:in `public_send'",
            "lib/api/helpers/members_helpers.rb:14:in `find_source'",
            "lib/api/badges.rb:36:in `block (3 levels) in <class:Badges>'",
            "ee/lib/gitlab/ip_address_state.rb:10:in `with'",
            "lib/api/api_guard.rb:208:in `call'",
            "lib/gitlab/jira/middleware.rb:19:in `call'"
          ],
          "cached": "",
          "warnings": []
        }
      ],
      "warnings": []
    },
    "gitaly": {
      "duration": "30ms",
      "calls": 2,
      "details": [
        {
          "start": 6301.575665897,
          "feature": "commit_service#get_tree_entries",
          "duration": 23.709,
          "request": "{:repository=>\n  {:storage_name=>\"nfs-file-cny01\",\n   :relative_path=>\n    \"@hashed/a6/80/a68072e80f075e89bc74a300101a9e71e8363bdb542182580162553462480a52.git\",\n   :git_object_directory=>\"\",\n   :git_alternate_object_directories=>[],\n   :gl_repository=>\"project-278964\",\n   :gl_project_path=>\"gitlab-org/gitlab\"},\n :revision=>\"master\",\n :path=>\".\",\n :sort=>:TREES_FIRST,\n :pagination_params=>{:page_token=>\"\", :limit=>100}}\n",
          "rpc": "get_tree_entries",
          "backtrace": [
            "lib/gitlab/gitaly_client/call.rb:48:in `block in instrument_stream'",
            "lib/gitlab/gitaly_client/commit_service.rb:128:in `each'",
            "lib/gitlab/gitaly_client/commit_service.rb:128:in `each'",
            "lib/gitlab/gitaly_client/commit_service.rb:128:in `flat_map'",
            "lib/gitlab/gitaly_client/commit_service.rb:128:in `tree_entries'",
            "lib/gitlab/git/tree.rb:26:in `block in tree_entries'",
            "lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'",
            "lib/gitlab/git/tree.rb:25:in `tree_entries'",
            "lib/gitlab/git/rugged_impl/tree.rb:29:in `tree_entries'",
            "lib/gitlab/git/tree.rb:21:in `where'",
            "app/models/tree.rb:17:in `initialize'",
            "app/models/repository.rb:681:in `new'",
            "app/models/repository.rb:681:in `tree'",
            "app/graphql/resolvers/paginated_tree_resolver.rb:35:in `resolve'",
            "lib/gitlab/graphql/present/field_extension.rb:18:in `resolve'",
            "lib/gitlab/graphql/extensions/externally_paginated_array_extension.rb:7:in `resolve'",
            "lib/gitlab/graphql/generic_tracing.rb:40:in `with_labkit_tracing'",
            "lib/gitlab/graphql/generic_tracing.rb:30:in `platform_trace'",
            "lib/gitlab/graphql/generic_tracing.rb:40:in `with_labkit_tracing'",
            "lib/gitlab/graphql/generic_tracing.rb:30:in `platform_trace'",
            "lib/gitlab/graphql/generic_tracing.rb:40:in `with_labkit_tracing'",
            "lib/gitlab/graphql/generic_tracing.rb:30:in `platform_trace'",
            "app/graphql/gitlab_schema.rb:40:in `multiplex'",
            "app/controllers/graphql_controller.rb:110:in `execute_multiplex'",
            "app/controllers/graphql_controller.rb:41:in `execute'",
            "ee/lib/gitlab/ip_address_state.rb:10:in `with'",
            "ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'",
            "app/controllers/application_controller.rb:497:in `set_current_admin'",
            "lib/gitlab/session.rb:11:in `with_session'",
            "app/controllers/application_controller.rb:488:in `set_session_storage'",
            "app/controllers/application_controller.rb:482:in `set_locale'",
            "app/controllers/application_controller.rb:476:in `set_current_context'",
            "ee/lib/omni_auth/strategies/group_saml.rb:41:in `other_phase'",
            "lib/gitlab/jira/middleware.rb:19:in `call'"
          ],
          "warnings": []
        }, {
          "start": 9081.502219885,
          "feature": "commit_service#find_commit",
          "duration": 6.678,
          "request": "{:repository=>\n  {:storage_name=>\"nfs-file-cny01\",\n   :relative_path=>\n    \"@hashed/a6/80/a68072e80f075e89bc74a300101a9e71e8363bdb542182580162553462480a52.git\",\n   :git_object_directory=>\"\",\n   :git_alternate_object_directories=>[],\n   :gl_repository=>\"project-278964\",\n   :gl_project_path=>\"gitlab-org/gitlab\"},\n :revision=>\"master\"}\n",
          "rpc": "find_commit",
          "backtrace": [
            "lib/gitlab/gitaly_client/call.rb:30:in `call'",
            "lib/gitlab/gitaly_client.rb:167:in `call'",
            "lib/gitlab/gitaly_client/commit_service.rb:520:in `call_find_commit'",
            "lib/gitlab/gitaly_client/commit_service.rb:354:in `find_commit'",
            "lib/gitlab/git/commit.rb:74:in `block in find_commit'",
            "lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'",
            "lib/gitlab/git/commit.rb:73:in `find_commit'",
            "lib/gitlab/git/rugged_impl/commit.rb:41:in `find_commit'",
            "lib/gitlab/git/commit.rb:65:in `find'",
            "lib/gitlab/git/repository.rb:789:in `commit'",
            "app/services/branches/diverging_commit_counts_service.rb:21:in `diverging_commit_counts'",
            "app/services/branches/diverging_commit_counts_service.rb:11:in `call'",
            "app/controllers/projects/branches_controller.rb:57:in `block (4 levels) in diverging_commit_counts'",
            "app/controllers/projects/branches_controller.rb:57:in `to_h'",
            "app/controllers/projects/branches_controller.rb:57:in `block (3 levels) in diverging_commit_counts'",
            "lib/gitlab/gitaly_client.rb:325:in `allow_n_plus_1_calls'",
            "app/controllers/projects/branches_controller.rb:56:in `block (2 levels) in diverging_commit_counts'",
            "app/controllers/projects/branches_controller.rb:51:in `diverging_commit_counts'",
            "ee/lib/gitlab/ip_address_state.rb:10:in `with'",
            "ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'",
            "app/controllers/application_controller.rb:497:in `set_current_admin'",
            "lib/gitlab/session.rb:11:in `with_session'",
            "app/controllers/application_controller.rb:488:in `set_session_storage'",
            "app/controllers/application_controller.rb:482:in `set_locale'",
            "app/controllers/application_controller.rb:476:in `set_current_context'",
            "ee/lib/omni_auth/strategies/group_saml.rb:41:in `other_phase'",
            "lib/gitlab/jira/middleware.rb:19:in `call'"
          ],
          "warnings": []
        }
      ],
      "warnings": []
    },
    "redis": {
      "duration": "0ms",
      "calls": 1,
      "details": [
        {
          "cmd": "get cache:gitlab:flipper/v1/feature/api_kaminari_count_with_limit",
          "duration": 0.155,
          "backtrace": [
            "lib/gitlab/instrumentation/redis_interceptor.rb:30:in `call'",
            "lib/feature.rb:81:in `enabled?'",
            "lib/gitlab/pagination/offset_pagination.rb:30:in `paginate_with_limit_optimization'",
            "lib/gitlab/pagination/offset_pagination.rb:14:in `paginate'",
            "lib/api/helpers/pagination.rb:7:in `paginate'",
            "lib/api/badges.rb:42:in `block (3 levels) in <class:Badges>'",
            "ee/lib/gitlab/ip_address_state.rb:10:in `with'",
            "lib/api/api_guard.rb:208:in `call'",
            "lib/gitlab/jira/middleware.rb:19:in `call'"
          ],
          "storage": "Cache",
          "warnings": [],
          "instance": "Cache"
        }
      ],
      "warnings": []
    },
    "es": {
      "duration": "0ms",
      "calls": 0,
      "details": [],
      "warnings": []
    }
  },
  "has_warnings": false
}

